home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / emulator / bsvc-1.000 / bsvc-1 / bsvc-1.0.4 / src / SimHector / devices / DeviceRegistry.hxx < prev    next >
Encoding:
Text File  |  1995-07-26  |  971 b   |  33 lines

  1. /////////////////////////////////////////////////////////////////////////////// //
  2. //
  3. // DeviceRegistry.hxx
  4. //
  5. //   This class keeps up with a list of all of the availible devices and
  6. // allocates them.  It's dervied from the BasicDeviceRegistry
  7. //
  8. // By: Bradford W. Mott
  9. // October 30,1993
  10. //
  11. ///////////////////////////////////////////////////////////////////////////////
  12.  
  13. #ifndef DEVICEREGISTRY_HXX
  14. #define DEVICEREGISTRY_HXX
  15.  
  16. #include "BasicDeviceRegistry.hxx"
  17.  
  18. ///////////////////////////////////////////////////////////////////////////////
  19. // The DeviceRegistry Class
  20. ///////////////////////////////////////////////////////////////////////////////
  21. class DeviceRegistry : public BasicDeviceRegistry {
  22.   private:
  23.     static const DeviceInformation device_info[];
  24.  
  25.   public:
  26.     DeviceRegistry();
  27.  
  28.     // Create a device with the given name (return 1=OK,0=ERROR)
  29.     int Create(String& name, String& args, BasicCPU *,
  30.                BasicDevice* &device); 
  31. };
  32. #endif
  33.